package com.yikaiye.android.yikaiye.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class CommitOrderModel implements Serializable {
    private List<Item> items = new ArrayList<>();
    /**
     * 产品ID
     */
    private String productId;
    /**
     * 产品名称
     */
    private String productName;
    /**
     * 价格
     */
    private String price;
    /**
     * 平台
     */
    private int platform;
    /**
     * 订单类型：2=预订单
     */
    private int type;
    /**
     * 订单状态，0：待付款，1：已付款，2：已取消，3：已退款，4：超时
     */
    private int status;
    /**
     * 版本
     */
    private String version;
    /**
     * 来源
     */
    private int source;

    /**
     * 企业确认状态 1已确认，0待确认
     */
    private Integer enterConfirmState;

    private String companyName;
    private String compName;
    private String creditNo;
    private String compId;

    public List<Item> getItems() {
        return items;
    }

    public void setItems(List<Item> items) {
        this.items = items;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getPlatform() {
        return platform;
    }

    public void setPlatform(int platform) {
        this.platform = platform;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public Integer getEnterConfirmState() {
        return enterConfirmState;
    }

    public void setEnterConfirmState(Integer enterConfirmState) {
        this.enterConfirmState = enterConfirmState;
    }

    public String getCreditNo() {
        return creditNo;
    }

    public void setCreditNo(String creditNo) {
        this.creditNo = creditNo;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompName() {
        return compName;
    }

    public void setCompName(String compName) {
        this.compName = compName;
    }

    public String getCompId() {
        return compId;
    }

    public void setCompId(String compId) {
        this.compId = compId;
    }

    public static class Item implements Serializable{
        /**
         * 服务id
         */
        private String serviceId;
        /**
         * 选择信息
         */
        private String selectInfo;
        /**
         * 属性内容表ID   attrListId
         */
        private String selectInfoId;
        /**
         * 服务名称
         */
        private String serviceName;
        /**
         * 订单价格
         */
        private String price;
        /**
         * 记账周期
         */
        private String bookPeriod;

        /**
         * 1周期型 0交付型
         */
        private int serviceType;

        private String productAttrListId;

        /**
         * 服务周期（现用于收费标准，如果是周期型的按月12，年1）
         */
        private int serviceAttrCycleType;

        private String terminalName;

        public String getServiceId() {
            return serviceId;
        }

        public void setServiceId(String serviceId) {
            this.serviceId = serviceId;
        }

        public String getSelectInfo() {
            return selectInfo;
        }

        public void setSelectInfo(String selectInfo) {
            this.selectInfo = selectInfo;
        }

        public String getSelectInfoId() {
            return selectInfoId;
        }

        public void setSelectInfoId(String selectInfoId) {
            this.selectInfoId = selectInfoId;
        }

        public String getServiceName() {
            return serviceName;
        }

        public void setServiceName(String serviceName) {
            this.serviceName = serviceName;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getBookPeriod() {
            return bookPeriod;
        }

        public void setBookPeriod(String bookPeriod) {
            this.bookPeriod = bookPeriod;
        }

        public int getServiceType() {
            return serviceType;
        }

        public void setServiceType(int serviceType) {
            this.serviceType = serviceType;
        }

        public String getProductAttrListId() {
            return productAttrListId;
        }

        public void setProductAttrListId(String productAttrListId) {
            this.productAttrListId = productAttrListId;
        }

        public int getServiceAttrCycleType() {
            return serviceAttrCycleType;
        }

        public void setServiceAttrCycleType(int serviceAttrCycleType) {
            this.serviceAttrCycleType = serviceAttrCycleType;
        }

        public String getTerminalName() {
            return terminalName;
        }

        public void setTerminalName(String terminalName) {
            this.terminalName = terminalName;
        }
    }
}
